export default {
  getType(value) {
    const type = typeof value
    if (type !== 'object') {
      return type
    }
    if (value === null) {
      return 'null'
    }
    const getTypeString = Object.prototype.toString
    return getTypeString.call(value).slice(7, -1).toLowerCase()
  }
}
